//
//  AppDelegate.h
//  wedding
//
//  Created by 常宽 on 15/1/14.
//  Copyright (c) 2015年 常宽. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

/// 数据管理器类(~服务员~)
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
/// 被管理数据模型类 (~菜谱~)
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
/// 连接器类 (~厨师~)
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

///  保存数据的命令
- (void)saveContext;
///  获取document路径:存储数据的路径
- (NSURL *)applicationDocumentsDirectory;

@end

